#pragma once

#include "BookmarkAccel.h"

// CAccelEdit

class CAccelEdit : public CEdit
{
	DECLARE_DYNAMIC(CAccelEdit)

public:
	CAccelEdit();
	virtual ~CAccelEdit();

public:
	void SetVirtKey(WORD wVirtKey);
	void SetKey(WORD wKey);
	void SetVirtKey(LPCTSTR lpszVirtKeys);
	void SetKey(LPCTSTR lpszKeyDesc);
	void SetAccel(LPCTSTR lpszAccelDesc);

	WORD GetVirtKey();
	WORD GetKey();

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);

protected:
	WORD m_wKey;
	WORD m_wVirtKey;
	CBookmarkAccel m_accel;
};


